package com.example.generator.controller;

import com.example.generator.entity.vo.DataxParament;
import com.example.generator.service.IDataxGeneratorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author：QPX
 * @date：2024-05-15-9:47
 */
@Controller
@RequestMapping("/dataxGenerator")
public class DataxGeneratorController {
    @Autowired
    private IDataxGeneratorService dataxGeneratorService;

    @PostMapping("/datax")
    @ResponseBody
    public void generatorBase(@RequestBody DataxParament dataxParament) throws Exception {
        dataxGeneratorService.generatorJson(dataxParament);
    }

}
